import request from '@/utils/request'
import axios from 'axios'

export function sysRoleList(params) {
	return request({
		url: '/system/sysRole/query',
		method: 'get',
		params
	})
}

export function sysRoleAllList(params) {
	return request({
		url: '/system/sysRole/queryByAll',
		method: 'get',
		params
	})
}

export function addSysRole(params) {
	return request({
		url: '/system/sysRole/add',
		method: 'get',
		params
	})
}

export function modifySysRole(params) {
	return request({
		url: '/system/sysRole/modify',
		method: 'get',
		params
	})
}

export function deleteSysRole(params) {
	return request({
		url: '/system/sysRole/deleteByBatch',
		method: 'get',
		params
	})
}

export function checkRole(params) {
  return request({
    url: '/system/sysRole/checkRole',
    method: 'get',
    params
  })
}


/**
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702612,'/sysRoleList','system/sysRoleList',NULL,'sysRoleList','系统角色',NULL,10000,1,100,now(), now(), NULL, NULL, 3);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702613,NULL,'system/sysRoleList',NULL,'addRec','添加',NULL,1649889710702612,1,10,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702614,NULL,'system/sysRoleList',NULL,'editRec','修改',NULL,1649889710702612,1,20,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702615,NULL,'system/sysRoleList',NULL,'deleteRec','删除',NULL,1649889710702612,1,30,now(), now(), NULL, NULL, 2);

**/
